import java.util.Scanner;

public class CounterText {
    public static void main(String[] args) {
        Counter cou=new Counter();
        Scanner in=new Scanner(System.in);
        System.out.println("请输入颜色");
        cou.colour=in.next();
        System.out.println("请输入品牌");
        cou.brand=in.next();
        System.out.println("请输入价格");
        cou.money=in.next();
        while (true){
            System.out.println("请选择功能\n1：加，2：乘，3：立方");
            int num=in.nextInt();
            if (num==1){
                System.out.println("请输入第1个数");
                double a=in.nextDouble();
                System.out.println("请输入第2个数");
                double b=in.nextDouble();
                System.out.println(cou.add(a,b));
            }else if (num==2){
                System.out.println("请输入第1个数");
                double c=in.nextDouble();
                System.out.println("请输入第2个数");
                double d=in.nextDouble();
                System.out.println(cou.ride(c,d));
            }else if(num==3){
                System.out.println("请输入第1个数");
                double e=in.nextDouble();
                System.out.println(cou.cube(e));
            }else {
                return;
            }
        }
    }
}
